import service from "./request.js";

export default {
  // 修改品种
  update(query) {
    return service({
      method: "PUT",
      url: "/admin-api/system/breed/update",
      data: query,
    });
  },
  // 切换品种状态
  status(query) {
    return service({
      method: "PUT",
      url: "/admin-api/system/breed/reversal-status",
      data: query,
    });
  },
  // 创建品种
  create(query) {
    return service({
      method: "POST",
      url: "/admin-api/system/breed/create",
      data: query,
    });
  },
  // 获得品种分页列表
  page(query) {
    return service({
      method: "GET",
      url: "/admin-api/system/breed/page",
      params: query,
    });
  },
  // 获取品种精简信息列表
  listAll(query) {
    return service({
      method: "GET",
      url: "/admin-api/system/breed/list-all",
      params: query,
    });
  },
  // 获取品种信息
  get(query) {
    return service({
      method: "GET",
      url: "/admin-api/system/breed/get",
      params: query,
    });
  },
};
